package com.adcc.loadsheet.monitor.mapper.oracle.master;

public interface MasterSystemMapper {

    /**
     * 验证数据库连接
     * @return
     */
    int validate() throws Exception;

    /**
     * 获取进程使用率 %
     * @return
     */
    double getProcessUsage() throws Exception;

    /**
     * 获取活跃进程数
     * @return
     */
    int getActiveProcess() throws Exception;

    /**
     * 获取最大进程数
     * @return
     */
    int getMaxProcess() throws Exception;

    /**
     * 获取表空间使用率 %
     * @param tablespaceName
     * @return
     */
    double getTablespaceUsage(String tablespaceName) throws Exception;

}
